From: Dominique Belhachemi Date: Tue, 13 Oct 2026 10:08:50 +0000 (+0200) Subject: fix invalid escape sequence in testing.py X-Git-Tag: archive/raspbian/9.6.2+ds-3+rpi1^2~10 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=71294d8fa28d4a7a00fea57f7343e8b85b6ca58c;p=vtk9.git fix invalid escape sequence in testing.py Origin: upstream, https://gitlab.kitware.com/vtk/vtk/-/commit/c0ec1384318bf93c0d2e8b046f702860d4a3195c Bug-Debian: https://bugs.debian.org/1142155 Bug-Debian: https://bugs.debian.org/1079541 Gbp-Pq: Name fix_invalid_escape_sequence_testing.patch --- diff --git a/Web/Python/vtkmodules/web/testing.py b/Web/Python/vtkmodules/web/testing.py index 8b74de5b7..cae6823cd 100644 --- a/Web/Python/vtkmodules/web/testing.py +++ b/Web/Python/vtkmodules/web/testing.py @@ -684,7 +684,7 @@ def launch_web_test(*args, **kwargs): # The test name will be generated from the python script name, so # match and capture a bunch of contiguous characters which are # not '.', '\', or '/', followed immediately by the string '.py'. - fnamePattern = re.compile("([^\.\/\\\]+)\.py") + fnamePattern = re.compile(r"([^./\\]+)\.py") fmatch = re.search(fnamePattern, testScriptFile) if fmatch: testName = fmatch.group(1)